<cfcomponent>

	<cffunction name="init" access="public" output="false" returntype="AbstractKalendarConfig" hint="I perform initialization functions for this component">
		<cfreturn this />	
	</cffunction>

	<cffunction name="getMemento" access="public" output="false" returntype="any">
		<cfreturn variables.instance />
	</cffunction>
	

	<cffunction name="getAdminCSSPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.AdminCSSPath />
	</cffunction>
	
	<cffunction name="setAdminCSSPath" access="public" output="false" returntype="void">
		<cfargument name="AdminCSSPath" type="string" required="true" />
		<cfset variables.instance.AdminCSSPath = arguments.AdminCSSPath />
	</cffunction>	
	
	<cffunction name="getAppTitle" access="public" output="false" returntype="string">
		<cfset var rtnValue = "Kalendar - #getKalendarBuildNumber()#" />
		<cfif len( trim( variables.instance.AppTitle  ) ) >
			<cfset rtnValue = variables.instance.AppTitle />
		</cfif>
		<cfreturn rtnValue />
	</cffunction>
	
	<cffunction name="setAppTitle" access="public" output="false" returntype="void">
		<cfargument name="AppTitle" type="string" required="true" />
		<cfset variables.instance.AppTitle = arguments.AppTitle />
	</cffunction>

	<cffunction name="getCFCPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.CFCPath />
	</cffunction>
	
	<cffunction name="setCFCPath" access="public" output="false" returntype="void">
		<cfargument name="CFCPath" type="string" required="true" />
		<cfset variables.instance.CFCPath = arguments.CFCPath />
	</cffunction>

	<cffunction name="getCSSPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.CSSPath />
	</cffunction>
	
	<cffunction name="setCSSPath" access="public" output="false" returntype="void">
		<cfargument name="CSSPath" type="string" required="true" />
		<cfset variables.instance.CSSPath = arguments.CSSPath />
	</cffunction>
	
	<cffunction name="getCurrentMode" access="public" output="false" returntype="string">
		<cfreturn variables.instance.CurrentMode />
	</cffunction>
	
	<cffunction name="setCurrentMode" access="public" output="false" returntype="void">
		<cfargument name="CurrentMode" type="string" required="true" />
		<cfset variables.instance.CurrentMode = arguments.CurrentMode />
	</cffunction>		

	<cffunction name="getCustomTagPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.CustomTagPath />
	</cffunction>
	
	<cffunction name="setCustomTagPath" access="public" output="false" returntype="void">
		<cfargument name="CustomTagPath" type="string" required="true" />
		<cfset variables.instance.CustomTagPath = arguments.CustomTagPath />
	</cffunction>	

	<cffunction name="getDBType" access="public" output="false" returntype="string">
		<cfreturn variables.instance.DBType />
	</cffunction>
	
	<cffunction name="setDBType" access="public" output="false" returntype="void">
		<cfargument name="DBType" type="string" required="true" />
		<cfset variables.instance.DBType = arguments.DBType />
	</cffunction>

	<cffunction name="getDefaultCategoryID" access="public" output="false" returntype="string">
		<cfreturn variables.instance.DefaultCategoryID />
	</cffunction>
	
	<cffunction name="setDefaultCategoryID" access="public" output="false" returntype="void">
		<cfargument name="DefaultCategoryID" type="string" required="true" />
		<cfset variables.instance.DefaultCategoryID = arguments.DefaultCategoryID />
	</cffunction>

	<cffunction name="getDefaultView" access="public" output="false" returntype="string">
		<cfreturn variables.instance.DefaultView />
	</cffunction>
	
	<cffunction name="setDefaultView" access="public" output="false" returntype="void">
		<cfargument name="DefaultView" type="string" required="true" />
		<cfset variables.instance.DefaultView = arguments.DefaultView />
	</cffunction>
	
	<cffunction name="getDSN" access="public" output="false" returntype="string">
		<cfreturn variables.instance.DSN />
	</cffunction>
	
	<cffunction name="setDSN" access="public" output="false" returntype="void">
		<cfargument name="DSN" type="string" required="true" />
		<cfset variables.instance.DSN = arguments.DSN />
	</cffunction>	

	<cffunction name="getFCKEditorCFCPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.FCKEditorCFCPath />
	</cffunction>
	
	<cffunction name="setFCKEditorCFCPath" access="public" output="false" returntype="void">
		<cfargument name="FCKEditorCFCPath" type="string" required="true" />
		<cfset variables.instance.FCKEditorCFCPath = arguments.FCKEditorCFCPath />
	</cffunction>
		
	<cffunction name="getFCKEditorRootPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.FCKEditorRootPath />
	</cffunction>
	
	<cffunction name="setFCKEditorRootPath" access="public" output="false" returntype="void">
		<cfargument name="FCKEditorRootPath" type="string" required="true" />
		<cfset variables.instance.FCKEditorRootPath = arguments.FCKEditorRootPath />
	</cffunction>	
	
	<cffunction name="getImagePath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ImagePath />
	</cffunction>
	
	<cffunction name="setImagePath" access="public" output="false" returntype="void">
		<cfargument name="ImagePath" type="string" required="true" />
		<cfset variables.instance.ImagePath = arguments.ImagePath />
	</cffunction>
	
	<cffunction name="getJavascriptPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.JavascriptPath />
	</cffunction>
	
	<cffunction name="setJavascriptPath" access="public" output="false" returntype="void">
		<cfargument name="JavascriptPath" type="string" required="true" />
		<cfset variables.instance.JavascriptPath = arguments.JavascriptPath />
	</cffunction>

	<cffunction name="getKalendarAdminPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.KalendarAdminPath />
	</cffunction>
	
	<cffunction name="setKalendarAdminPath" access="public" output="false" returntype="void">
		<cfargument name="KalendarAdminPath" type="string" required="true" />
		<cfset variables.instance.KalendarAdminPath = arguments.KalendarAdminPath />
	</cffunction>
		
	<cffunction name="getKalendarBuildNumber" access="public" output="false" returntype="string">
		<cfreturn variables.instance.KalendarBuildNumber />
	</cffunction>
	
	<cffunction name="setKalendarBuildNumber" access="public" output="false" returntype="void">
		<cfargument name="KalendarBuildNumber" type="string" required="true" />
		<cfset variables.instance.KalendarBuildNumber = arguments.KalendarBuildNumber />
	</cffunction>
	
	<cffunction name="getKalendarURLPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.KalendarURLPath />
	</cffunction>
	
	<cffunction name="setKalendarURLPath" access="public" output="false" returntype="void">
		<cfargument name="KalendarURLPath" type="string" required="true" />
		<cfset variables.instance.KalendarURLPath = arguments.KalendarURLPath />
	</cffunction>
	
	<cffunction name="getLongDateMask" access="public" output="false" returntype="string">
		<cfreturn variables.instance.LongDateMask />
	</cffunction>
	
	<cffunction name="setLongDateMask" access="public" output="false" returntype="void">
		<cfargument name="LongDateMask" type="string" required="true" />
		<cfset variables.instance.LongDateMask = arguments.LongDateMask />
	</cffunction>

	<cffunction name="getLongTimeMask" access="public" output="false" returntype="string">
		<cfreturn variables.instance.LongTimeMask />
	</cffunction>
	
	<cffunction name="setLongTimeMask" access="public" output="false" returntype="void">
		<cfargument name="LongTimeMask" type="string" required="true" />
		<cfset variables.instance.LongTimeMask = arguments.LongTimeMask />
	</cffunction>		

	<cffunction name="getMaxDescriptionSize" access="public" output="false" returntype="string">
		<cfreturn variables.instance.MaxDescriptionSize />
	</cffunction>
	
	<cffunction name="setMaxDescriptionSize" access="public" output="false" returntype="void">
		<cfargument name="MaxDescriptionSize" type="string" required="true" />
		<cfset variables.instance.MaxDescriptionSize = arguments.MaxDescriptionSize />
	</cffunction>
	
	<cffunction name="getMiniCalendarPath" access="public" output="false" returntype="string">
		<cfreturn variables.instance.MiniCalendarPath />
	</cffunction>
	
	<cffunction name="setMiniCalendarPath" access="public" output="false" returntype="void">
		<cfargument name="MiniCalendarPath" type="string" required="true" />
		<cfset variables.instance.MiniCalendarPath = arguments.MiniCalendarPath />
	</cffunction>
	
	<cffunction name="hasMiniCalendarInclude" access="public" output="false" returntype="boolean">
 		<cfset var rtnValue = false />
		<cfif len( trim( getMiniCalendarPath() ) )>
			<cfset rtnValue = true />
		</cfif>
		
		<cfreturn rtnValue />
	</cffunction>

	<cffunction name="getReloadKey" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ReloadKey />
	</cffunction>
	
	<cffunction name="setReloadKey" access="public" output="false" returntype="void">
		<cfargument name="ReloadKey" type="string" required="true" />
		<cfset variables.instance.ReloadKey = arguments.ReloadKey />
	</cffunction>

	<cffunction name="getReloadPassword" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ReloadPassword />
	</cffunction>
	
	<cffunction name="setReloadPassword" access="public" output="false" returntype="void">
		<cfargument name="ReloadPassword" type="string" required="true" />
		<cfset variables.instance.ReloadPassword = arguments.ReloadPassword />
	</cffunction>
		
	<cffunction name="getRSSEditor" access="public" output="false" returntype="string">
		<cfreturn variables.instance.RSSEditor />
	</cffunction>
	
	<cffunction name="setRSSEditor" access="public" output="false" returntype="void">
		<cfargument name="RSSEditor" type="string" required="true" />
		<cfset variables.instance.RSSEditor = arguments.RSSEditor />
	</cffunction>

	<cffunction name="getRSSWebmaster" access="public" output="false" returntype="string">
		<cfreturn variables.instance.RSSWebmaster />
	</cffunction>
	
	<cffunction name="setRSSWebmaster" access="public" output="false" returntype="void">
		<cfargument name="RSSWebmaster" type="string" required="true" />
		<cfset variables.instance.RSSWebmaster = arguments.RSSWebmaster />
	</cffunction> 	
		
	<cffunction name="getShortDateMask" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ShortDateMask />
	</cffunction>
	
	<cffunction name="setShortDateMask" access="public" output="false" returntype="void">
		<cfargument name="ShortDateMask" type="string" required="true" />
		<cfset variables.instance.ShortDateMask = arguments.ShortDateMask />
	</cffunction>
	
	<cffunction name="getShortTimeMask" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ShortTimeMask />
	</cffunction>
	
	<cffunction name="setShortTimeMask" access="public" output="false" returntype="void">
		<cfargument name="ShortTimeMask" type="string" required="true" />
		<cfset variables.instance.ShortTimeMask = arguments.ShortTimeMask />
	</cffunction>	

	<cffunction name="getShowDetailsUnderMiniCalendar" access="public" output="false" returntype="string">
		<cfreturn yesNoFormat( variables.instance.ShowDetailsUnderMiniCalendar ) />
	</cffunction>
	
	<cffunction name="setShowDetailsUnderMiniCalendar" access="public" output="false" returntype="void">
		<cfargument name="ShowDetailsUnderMiniCalendar" type="string" required="true" />
		<cfset variables.instance.ShowDetailsUnderMiniCalendar = arguments.ShowDetailsUnderMiniCalendar />
	</cffunction>

	<cffunction name="getTmpImportDirectory" access="public" output="false" returntype="string">
		<cfreturn variables.instance.TmpImportDirectory />
	</cffunction>
	
	<cffunction name="setTmpImportDirectory" access="public" output="false" returntype="void">
		<cfargument name="TmpImportDirectory" type="string" required="true" />
		<cfset variables.instance.TmpImportDirectory = arguments.TmpImportDirectory />
	</cffunction>

	<cffunction name="getToolTipSubLength" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ToolTipSubLength />
	</cffunction>
	
	<cffunction name="setToolTipSubLength" access="public" output="false" returntype="void">
		<cfargument name="ToolTipSubLength" type="string" required="true" />
		<cfset variables.instance.ToolTipSubLength = arguments.ToolTipSubLength />
	</cffunction>
	
	<cffunction name="getUseCategoryColors" access="public" output="false" returntype="string">
		<cfreturn variables.instance.UseCategoryColors />
	</cffunction>
	
	<cffunction name="setUseCategoryColors" access="public" output="false" returntype="void">
		<cfargument name="UseCategoryColors" type="string" required="true" />
		<cfset variables.instance.UseCategoryColors = arguments.UseCategoryColors />
	</cffunction>

	<cffunction name="getUseFCKEditor" access="public" output="false" returntype="string">
		<cfreturn variables.instance.UseFCKEditor />
	</cffunction>
	
	<cffunction name="setUseFCKEditor" access="public" output="false" returntype="void">
		<cfargument name="UseFCKEditor" type="string" required="true" />
		<cfset variables.instance.UseFCKEditor = arguments.UseFCKEditor />
	</cffunction>
	
	<cffunction name="getValidViewList" access="public" output="false" returntype="string">
		<cfreturn variables.instance.ValidViewList />
	</cffunction>
	
	<cffunction name="setValidViewList" access="public" output="false" returntype="void">
		<cfargument name="ValidViewList" type="string" required="true" />
		<cfset variables.instance.ValidViewList = arguments.ValidViewList />
	</cffunction>

</cfcomponent>